package ua.kpi.JavaTraning5.domain;

import java.util.List;

/**
 * This class extends form fish.
 *
 * @author Vitaliy Vasylenko <apa4i007@gmail.com>
 * @version 1.0
 * @since 2013-05-29
 */
public class Predator extends Fish {

    /**
     * The method moves the predators at a given distance.
     *
     * @param grid - The grid where need to move predator
     * @param x    - how much to move along the x axis
     * @param y    - how much to move along the y axis
     */
    public void move(Grid grid, int x, int y) {
        if ((x <= 10) || (y <= 10)) {
            grid.fillCell(x, y);
        } else {
            System.out.println("fuck");
        }
    }

    /**
     * The method performs multiplication of predators.
     *
     * @param fishes - A List predators for reproduction
     * @return List<Fish> - The List of multiply predators
     */
    public List<Fish> multiply(List<Fish> fishes) {
        return fishes;
    }
}
